package com.zhkj.txg.module.member.entity

import com.google.gson.annotations.SerializedName
import com.zhkj.lib.http.BaseResponse
import com.zhkj.txg.module.product.entity.SpecEntity
import com.zhkj.txg.module.product.entity.SpecPriceEntity

data class MemberProductResponse(
    val data: MemberProductEntity? = null
) : BaseResponse()

data class MemberProductEntity(
    @SerializedName("is_invite")
    val isInvite: Boolean = false,
    @SerializedName("is_member")
    val isMember: Boolean = false,
    @SerializedName("invite_reward")
    val reward: Double = 0.0,
    val goods: MemberProductChildEntity? = null
)

data class MemberProductChildEntity(
    val id: Long,
    @SerializedName("goods_name")
    val goodsName: String = "",
    val price: String = "",
    val image: String? = null,
    val images: MutableList<String> = mutableListOf(),
    @SerializedName("goods_content")
    val goodsContent: String,
    @SerializedName("market_price")
    val marketPrice: String?,
    @SerializedName("store_count")
    val storeCount: Int? = 0,
    @SerializedName("spec_goods_price")
    val specPrice: MutableList<SpecPriceEntity> = mutableListOf(),
    val spec: MutableList<SpecEntity> = mutableListOf()
)